<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			<h2>我叫{{name}}</h2>
			<button v-on:click="showInfo">点我</button>
			<button @click="showInfo2(123,$event)">点我</button>
		</div>
		<script type="text/javascript">
			const vm=new Vue({
				el:'#root',
				data:{
					name:'邹宜臻'
				},
				methods:{
					showInfo(){
						alert('我叫邹宜臻')
					},
					showInfo2(num,event){
						console.log(num)
						console.log(event)
					}
				}
			})
		</script>
	</body>
</html>
